package com.xinruke.hostels.support.interfaces.api;

import com.xinruke.hostels.common.vo.ResultVO;
import com.xinruke.hostels.support.interfaces.dto.SystemDictQueryDTO;
import com.xinruke.hostels.support.interfaces.dto.SystemDictQueryResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @ClassName SupportApi
 * @CreateDate 2019/6/17
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 基础服务API
 */
@FeignClient(value = "support-service", fallbackFactory = SupportFallback.class)
public interface SupportApi {
    @PostMapping("/system/dict/list")
    public ResultVO<List<SystemDictQueryResultDTO>> getSystemDictList(@RequestBody SystemDictQueryDTO systemDictQueryDTO);
    @GetMapping("/system/dict/{fenzubianma}/{canshuzhi}")
    public String getSystemDictName(@PathVariable("fenzubianma") String fenzubianma, @PathVariable("canshuzhi") String canshuzhi);
}
